<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>

<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><a href="<?php echo $MODULE['special']['url'];?>">专题</a><a href="<?php echo $MODULE['special']['url'];?><?php echo $TYPE[$typeid]['url'];?>"><?php echo $TYPE[$typeid]['name'];?></a><a href="<?php echo $url;?>"><?php echo $title;?></a></div>
    <div class="bdr_2">
      <ul class="pic_list">
      <?php $DATA = get("SELECT * FROM `phpcms_content` AS a, `phpcms_special_content` AS b WHERE b.contentid = a.contentid AND a.thumb != '' AND b.specialid = $specialid ORDER BY  b.contentid DESC", 8, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
        <li><a href="<?php echo $r['url'];?>" target="_blank"><img src="<?php echo $r['thumb'];?>" width="142" height="90" alt="<?php echo $r['title'];?>" /></a><br /><a href="<?php echo $r['url'];?>" target="_blank"><?php echo str_cut($r[title],20);?></a>
        </li>
      <?php } unset($DATA); ?>        
      </ul>
    </div>
<div class="mar_10">
<ul class="text_list text_list_f14">
<?php $ARRAY = get("SELECT * FROM `phpcms_content` AS a , `phpcms_special_content` AS b WHERE b.contentid = a.contentid AND b.specialid = $specialid ORDER BY  b.contentid DESC", 20, $page, "", "");$DATA=$ARRAY['data'];$total=$ARRAY['total'];$count=$ARRAY['count'];$pages=$ARRAY['pages'];unset($ARRAY);foreach($DATA AS $n=>$r){$n++;?>
    <li><span class="date"><?php echo date('Y-m-d',$r[updatetime]);?></span>
    <a href="<?php echo $r['url'];?>" target="_blank" class="url"><?php echo $r['title'];?></a>
  </li>
<?php } unset($DATA); ?>
</ul>
</div>
<p id="pages"><?php echo $pages;?></div>  
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side">
      <script language="javascript" src="data/js.php?id=5"></script>
    </div>
    <h4>图片文章</h4>
    <div>
      <ul class="pic_list">
        <?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `zzinfo_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 9, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'height' => '80',  'width' => '120',));?>
      </ul>
    </div>
    <h4>推荐文章</h4>
    <div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content_pos', "SELECT a.contentid,a.catid,a.typeid,a.areaid,a.title,a.style,a.thumb,a.keywords,a.description,a.userid,a.updatetime,a.inputtime,a.url FROM `zzinfo_content` a, `zzinfo_content_position` p WHERE a.contentid=p.contentid AND p.posid=4 AND a.status=99  ".get_sql_catid($catid)." ORDER BY listorder DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>